-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cancel goto for head #164
Cancel goto for head #164
Conversation
@@ -214,6 +215,10 @@ def orient( | |||
response = self._goto_stub.GoToJoints(request) | |||
return response | |||
|
|||
def cancel_goto_by_id(self, goto_id: int) -> GoToAck: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I gave the same name as for the arm, but the rotation function are called "look_at", "rotate_to" and "orient" for the head. Any idea on how to call the function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cancel_rotation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works. Tested with
reachy.head.orient(pitch=0, roll=0, yaw=0, duration=1.0)
time.sleep(1)
req = reachy.head.orient(pitch=180, roll=0, yaw=0, duration=10)
time.sleep(1)
reachy.head.cancel_goto_by_id(req)
Should be added to unit test.
@@ -214,6 +215,10 @@ def orient( | |||
response = self._goto_stub.GoToJoints(request) | |||
return response | |||
|
|||
def cancel_goto_by_id(self, goto_id: int) -> GoToAck: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cancel_rotation?
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
Add possibility to interrupt a head rotation.